package com.isunland.managesystem.entity;

import com.isunland.managesystem.base.BaseModel;

/**
 * 对象功能:
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: wangyanan
 * 创建时间: 2016/12/14 13:14
 */

public class SettlementInfo extends BaseModel {

  /**
   * id : 11111
   * name : 张三
   * date : 2016-10-10
   * cost : 100.0
   */

  private String id;
  private String name;
  private String date;
  private double cost;

  private SettlementInfo(Builder builder) {
    setId(builder.id);
    setName(builder.name);
    setDate(builder.date);
    setCost(builder.cost);
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getDate() {
    return date;
  }

  public void setDate(String date) {
    this.date = date;
  }

  public double getCost() {
    return cost;
  }

  public void setCost(double cost) {
    this.cost = cost;
  }

  public static final class Builder {
    private String id;
    private String name;
    private String date;
    private double cost;

    public Builder() {
    }

    public Builder id(String val) {
      id = val;
      return this;
    }

    public Builder name(String val) {
      name = val;
      return this;
    }

    public Builder date(String val) {
      date = val;
      return this;
    }

    public Builder cost(double val) {
      cost = val;
      return this;
    }

    public SettlementInfo build() {
      return new SettlementInfo(this);
    }
  }
}
